﻿@{
 var sessionEntity = (Session["UserSession"] as BTKERP.Model.Web.SessionEntity);
 string name =sessionEntity == null ? string.Empty: sessionEntity.Staff.DisplayName;
}
<!DOCTYPE html>
<html>
<head>

    <title>@ViewBag.Title</title>
    <!-- Main Stylesheet --> 
    <link rel="stylesheet" href="../../Content/CSS/style.css" type="text/css" />
    <!-- Your Custom Stylesheet --> 
    <link rel="stylesheet" href="../../Content/CSS/custom.css" type="text/css" />
    <link rel="Stylesheet" href="../../Content/CSS/ExciteBike/jquery-ui-1.8.19.custom.css" />
     <!--swfobject - needed only if you require <video> tag support for older browsers -->
    <script type="text/javascript" src="../../Content/js/swfobject.js"></script>
    <!-- jQuery with plugins -->
    <script type="text/javascript" src="../../Scripts/jquery-1.5.1.min.js"></script>
    <!-- Could be loaded remotely from Google CDN : <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> -->
    <script type="text/javascript" src="../../Content/js/jquery.ui.core.min.js"></script>
    <script type="text/javascript" src="../../Content/js/jquery.ui.widget.min.js"></script>
    <script type="text/javascript" src="../../Content/js/jquery.ui.tabs.min.js"></script>
    <!-- jQuery tooltips -->
    <script type="text/javascript" src="../../Content/js/jquery.tipTip.min.js"></script>
    <!-- Superfish navigation -->
    <script type="text/javascript" src="../..//js/jquery.superfish.min.js"></script>
    <script type="text/javascript" src="../../Content/js/jquery.supersubs.min.js"></script>
    <!-- jQuery form validation -->
    <script type="text/javascript" src="../../Content/js/jquery.validate_pack.js"></script>
    <!-- jQuery popup box -->
    <script type="text/javascript" src="../../Content/js/jquery.nyroModal.pack.js"></script>
    <!-- jQuery data tables -->
    <script type="text/javascript" src="../../Content/js/jquery.dataTables.min.js"></script>

    <script type="text/javascript" src="../../Scripts/jquery-ui-1.8.19.custom.min.js"></script>
     <script type="text/javascript">
        var currentPageId = @ViewBag.CurrentPageId;
     </script>
    <script src="/Scripts/common.js" type="text/javascript"></script>
    @RenderSection("AdditionalJS", false)
   <script type="text/javascript">
       $(document).ready(function () {
           var trs = $("table tr");
           trs.each(function () {
               $(this).bind("mouseover", function () {
                   $(this).css("backgroundColor", "#CCFFFF");
               }).bind("mouseout", function () {
                   $(this).css("backgroundColor", "white");
               });
           });
       });
</script>
</head>
<body>

<header id="top">
		<div class="wrapper">
			<!-- Title/Logo - can use text instead of image -->
			<div id="title"><img src="../../Content/img/logo.png" alt="Administry" /><!--<span>Administry</span> demo--></div>
			<!-- Top navigation -->
			<div id="topnav">
				<a href="#"><img class="avatar" src="../../Content/img/user_32.png" alt="" /></a>
				Logged in as <b> @name</b>
				<span>|</span> <a href="#"><b>Settings</b></a>
				<span>|</span> <a href="/Dashboard/Logout"><b>Logout</b></a><br />
			</div>
			<!-- End of Top navigation -->
			<!-- Main navigation -->
			<nav id="menu" class="mainMenu">
				<ul class="sf-menu">
					<li id="1">@Html.ActionLink("Home", "Index", "Dashboard")</li>
					<li id="2">
						<a href="#">Inventory</a>
						<ul>
                            <li>
								@Html.ActionLink("Product", "Index", "Product")
							</li>
							<li>
								@Html.ActionLink("Category", "Index", "Category")
							</li>
                            <li>
								@Html.ActionLink("Unit", "Index", "Unit")
							</li>
                             <li>
								@Html.ActionLink("Warehouse", "Index", "Warehouse")
							</li>
                            <li>
								@Html.ActionLink("Warehouse Shelf", "Index", "Shelf")
							</li>
                            <li>
								@Html.ActionLink("GRN", "Index", "GRN")
							</li>
						</ul>
					</li>
					<li id="3"><a href="#">Requisition</a>
                        <ul>
							<li>
                               <a href="@Url.Action("Index", "Requistion")">New Requisition</a>
                            </li>
                            <li>
                                <a href="@Url.Action("MyReq","Requistion")">My Requisition</a>
                            </li>
							<li><a href="@Url.Action("Management", "Requistion")">Requisition Management</a></li>
						</ul>
                    </li>
					<li id="4"><a href="#">Delivery Order</a>
                        <ul>
                            <li>
								@Html.ActionLink("Requisition Delivery", "Index", "RequisitionDO")
							</li>
							<li>
							   <a href="#">Requisition Receive</a> 
							</li>
						</ul>
                    </li>	
					<li id="5"><a href="#">Security</a></li>	
				</ul>
			</nav>
			<!-- End of Main navigation -->
			<!-- Aside links -->
			@*<div><b>English</b> &middot; <a href="#">Spanish</a> &middot; <a href="#">German</a></div>*@
			<!-- End of Aside links -->
		</div>
</header>
	<!-- End of Header -->
    <!-- Page content -->
    <div id="pagetitle">
		<div class="wrapper">
			<h1>@ViewBag.Title</h1>
			<!-- Quick search box -->
            @if (@ViewBag.EnableSearch)
            {
			    <form action="" method="get"><input class="" type="text" id="q" name="q" /></form>
            }
		</div>
	</div>
    <div id="page">
        <div id="mainConaint">
       @RenderBody() 
       </div>
    </div>
</body>
</html>
